package com.niiwoo.civet.user.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 查询用户信息类型
 */
@Getter
@AllArgsConstructor
public enum  QueryBasicInfoEnum {

    USER_ID((byte)1,"用户id"),
    MOBILE_NO((byte)2,"手机");

    private Byte value;
    private String desc;

    public static QueryBasicInfoEnum enumOf(byte value) {
        for (QueryBasicInfoEnum deviceType : values()) {
            if (deviceType.value == value) {
                return deviceType;
            }
        }
        return null;
    }
}
